package day0307;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class Test05 {
    public static void main(String[] args) {
        try {
            FileOutputStream fos =new FileOutputStream("note.txt");
            fos.write("哈哈哈".getBytes(StandardCharsets.UTF_8));
            System.out.println("完毕");
            fos.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
